package com.yy.adapter;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class MyFragmentPageAdapter extends FragmentPagerAdapter {
	private List<Fragment> mlist;

	public MyFragmentPageAdapter(FragmentManager fm,List<Fragment> list) {
		super(fm);
		this.mlist = list;
	}

	@Override
	public Fragment getItem(int position) {
		return this.mlist.get(position);
	}

	@Override
	public int getCount() {
		return mlist.size();
	}

}
